<!DOCTYPE html>
<html lang="en">
	<head>
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
		<meta charset="utf-8">
		<link rel="stylesheet" href="../lib/css/bootstrap.min.css">
		<link rel="stylesheet" href="../css/base.css">
		<link rel="stylesheet" href="../css/myAddress.css">
	</head>
	<body>
		<div class="titleTea">
			<a href="myself.html">
				<span class="glyphicon glyphicon-menu-left"></span>
			</a>
			<h3>我的地址</h3>
		</div>
		<!-- 地址列表 -->
		<div class="adressList">
			<ul>
			</ul>
		</div>
		<!-- 确认删除弹框 -->
		<div class="areYouSure">
		<div class="headS">
			确定删除？
		</div>
		<div class="footS">
			<button class="sureS">确定</button>
			<button class="cancel">取消</button>
		</div>
	</div>
		<!-- 添加地址按钮 -->
		<a href="#" class="add">添加地址</a>
	</body>
	<script src="../lib/js/jquery.min.js"></script>
	
	<script src="../lib/js/bootstrap.min.js"></script>
	<script src="../lib/template/template-native.js"></script>
  <script type="text" id="myA">
  <%for (var i = 0; i < myA.sing.length; i++) {%>
  	<%if ( myA.sing[i].is_default==1) {%>
  		<li data-id=<%= myA.sing[i].address_id%> class="bb">
				<div class="adress-head">
					<p><span class="userName"><%= myA.sing[i].consignee%></span><span class="phoneNumber"><%= myA.sing[i].mobile%></span></p>
					<p class="userAdress"><%= myA.sing[i].address%></p>
				</div>
				<div class="adress-bottom">
					<label>
						<input type="radio" name="blankRadio" value="option1" aria-label="..." class="radioT"  checked="checked">
						<span class="red">默认地址</span>
					</label>
					<a href="#" class="edit"><span class="glyphicon glyphicon-pencil icon"></span>编辑</a>
					<a href="#" class="del"><span class="glyphicon glyphicon-trash icon"></span>删除</a>
				</div>
			</li> 
  		<%}else{%>
				<li data-id=<%= myA.sing[i].address_id%>>
					<div class="adress-head">
						<p><span class="userName"><%= myA.sing[i].consignee%></span><span class="phoneNumber"><%= myA.sing[i].mobile%></span></p>
						<p class="userAdress"><%= myA.sing[i].address%></p>
					</div>
					<div class="adress-bottom">
						<label>
							<input type="radio" name="blankRadio" value="option1" aria-label="..." class="radioT">
							<span>设为默认</span>
						</label>
						<a href="#" class="edit"><span class="glyphicon glyphicon-pencil icon"></span>编辑</a>
						<a href="#" class="del"><span class="glyphicon glyphicon-trash icon"></span>删除</a>
					</div>
				</li>
  			<%}%>
  	 
		<%};%>
  </script>
	<script src="../script/myAddress.js"></script>
	<script src="../script/rem.js"></script>
</html>